package chamans{
	import flash.display.*; import flash.events.*; 
	import flash.geom.*; import flash.system.*; import flash.net.*;
	
	public class PauseScreen extends Sprite
	{
		public function PauseScreen(base:Object) : void
		{
			BASE=base;
			center=new Sprite(); addChild(center);
			Resize()
			add_Message()
		}
		private function add_Message():void
		{  
			var message:XML=
				<xml><errorplug>Render in pause</errorplug>
				<errorplug2>Click on view to play</errorplug2>
				<errorplug3></errorplug3></xml>;
			MessageText=new SYS_text(BASE.SYS.FONT.CSS, 300,-150, -17);
			center.addChild(MessageText)
			MessageText.readXML(message)
			BASE.SYS.MODE(MessageText)
			// special fps
			if(BASE.SYS.viseur)BASE.SYS.viseur.visible=false;
		}
		public function clear(e:Event=null):void
		{
			MessageText.clear()
			center.removeChild(MessageText)
			removeChild(center);center=null;
			//special fps
			if(BASE.SYS.viseur)BASE.SYS.viseur.visible=true;
		}
		public function Resize(e:Event=null):void
		{
			center.x=BASE.size.x>>1; center.y=BASE.size.y>>1 
		}
		
		private var BASE:Object
		private var center:Sprite
		private var BGim:BitmapData
		private var MessageText:SYS_text
	}}